package com.isoftstone.project.system.mapper;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SysRoleMenuMapper {

    void saveRoleMenus(@Param(value = "roleId") String roleId, @Param(value = "menuIds") String menuIds, @Param(value = "appId") String appId) throws Exception ;


    void  deleteRoleMenusByRoleId(@Param(value = "roleId") String roleId) throws Exception ;

    /**
     * 修改clientId
     * @throws Exception
     */
    void  updateRoleMenusAppId() throws Exception ;

    void  deleteRoleMenusByMenuId(@Param(value = "menuId") String menuId) throws Exception ;

    List<String> getMenusByRoleId(@Param(value = "roleId") String roleId) throws Exception ;
}
